<!DOCTYPE html>
<html>
  <head>
    <script src="./js/vue.js"></script>
  </head>
  <body>
    <h2>Vue 学习</h2>
    <div id="app">
      <child-component>插槽测试</child-component>
    </div>
  </body>
  <script>
    Vue.component("child-component", {
      template: `
            <div>Hello,World!  <slot></slot> 	</div>
					
        `,
    });
    let vm = new Vue({
      el: "#app",
      data: {},
    });
  </script>
</html>
